package com.summer.data.connection;

import com.summer.data.rs.datatype.PageInfo;

/**
 * @author 345480567@qq.com
 */
public class PageInfoHolder {

    private static final ThreadLocal<PageInfo> pageInfoThreadLocal = new ThreadLocal<>();

    public static PageInfo getPageInfo() {
        return pageInfoThreadLocal.get();
    }

    public static void setPageInfo(PageInfo pageInfo) {
        pageInfoThreadLocal.set(pageInfo);
    }

    public static void clearPageInfo() {
        pageInfoThreadLocal.set(null);
    }
}
